package pref.junx.flybird.activity.grou_msg;


import java.util.List;

import pref.junx.flybird.base.BaseModel;
import pref.junx.flybird.base.BasePresenter;
import pref.junx.flybird.base.Baseview;
import pref.junx.flybird.entity.FriendShip;
import pref.junx.flybird.entity.Reg_user;
import pref.junx.flybird.entity.Register_result;
import pref.junx.flybird.entity.ResultBean;
import pref.junx.flybird.entity.User_idea;
import rx.Observable;

/**
 * Created by 半生瓜 on 2017/8/7
 * .
 */

public interface Grou_msg_Conteact {
    interface Model extends BaseModel {
        Observable<Register_result> getregisterModel(Reg_user reg_user);

        Observable<ResultBean<Boolean>>  deleteEvent(FriendShip f);

        Observable<ResultBean<List<User_idea>>> getUser(int id);
    }
    interface View extends Baseview {
        void success();
        void result(String a);

        void susses();

        void fail();

        void setUserMsg(List<User_idea> data);
    }
    abstract  class Presenter extends BasePresenter<Model,View> {
      protected  abstract void  doreg(String account,String name,String password);

        public abstract void delete(FriendShip f);


        public abstract void getUser(int id);
    }
}
